/* 设置页面样式 */
.settingsPage {
  padding: 24px;
  min-height: 100vh;
  background-color: #f5f5f5;
}

/* 页面头部 */
.pageHeader {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.headerContent {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.titleSection {
  flex: 1;
}

.pageTitle {
  margin-bottom: 8px !important;
  color: #1890ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 页面内容 */
.pageContent {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contentTabs {
  padding: 0;
}

.contentTabs .ant-tabs-nav {
  padding: 0 24px;
  margin-bottom: 0;
}

.contentTabs .ant-tabs-content-holder {
  padding: 24px;
}

/* 设置卡片 */
.settingCard {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.settingCard:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.settingCard .ant-card-head {
  border-bottom: 1px solid #f0f0f0;
}

.settingCard .ant-card-head-title {
  font-weight: 600;
  color: #262626;
}

/* 设置项 */
.settingItem {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
}

.settingItem:not(:last-child) {
  border-bottom: 1px solid #f5f5f5;
}

.settingLabel {
  flex: 1;
  margin-right: 16px;
}

.settingLabel .ant-typography {
  margin-bottom: 4px !important;
}

.settingLabel .ant-typography:last-child {
  margin-bottom: 0 !important;
}

/* 数据统计 */
.dataStats {
  padding: 8px 0;
}

.statItem {
  text-align: center;
  padding: 12px 8px;
  border-radius: 6px;
  background-color: #fafafa;
  transition: all 0.3s ease;
}

.statItem:hover {
  background-color: #f0f0f0;
  transform: translateY(-1px);
}

.statNumber {
  font-size: 24px;
  font-weight: bold;
  color: #1890ff;
  line-height: 1;
  margin-bottom: 4px;
}

.statLabel {
  font-size: 12px;
  color: #8c8c8c;
}

/* 备份区域 */
.backupSection {
  padding: 8px 0;
}

.uploadArea {
  border: 2px dashed #d9d9d9 !important;
  border-radius: 6px !important;
  background-color: #fafafa !important;
  transition: all 0.3s ease !important;
}

.uploadArea:hover {
  border-color: #1890ff !important;
  background-color: #f0f8ff !important;
}

.uploadArea .ant-upload-drag-icon {
  color: #1890ff !important;
}

/* 危险操作卡片 */
.dangerCard {
  border-radius: 8px;
  border: 1px solid #ff4d4f;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.1);
}

.dangerCard .ant-card-head {
  background-color: #fff2f0;
  border-bottom: 1px solid #ffccc7;
}

.dangerCard .ant-card-head-title {
  color: #ff4d4f;
  font-weight: 600;
}

/* 系统信息 */
.systemInfo {
  padding: 8px 0;
}

.infoItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.infoItem:last-child {
  border-bottom: none;
}

.infoItem .ant-typography:first-child {
  color: #666;
  margin-right: 16px;
}

.infoItem .ant-typography:last-child {
  color: #262626;
  text-align: right;
}

/* 主题选择器样式 */
.themeSelector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.themeOption {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border: 2px solid #d9d9d9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

.themeOption:hover {
  border-color: #1890ff;
  background-color: #f0f8ff;
}

.themeOption.active {
  border-color: #1890ff;
  background-color: #e6f7ff;
}

.themeOption .themeIcon {
  font-size: 24px;
  margin-bottom: 8px;
}

.themeOption .themeLabel {
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* 进度条样式 */
.importProgress {
  margin: 16px 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .settingItem {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .settingLabel {
    margin-right: 0;
  }
  
  .dataStats .ant-col {
    margin-bottom: 8px;
  }
}

@media (max-width: 768px) {
  .settingsPage {
    padding: 16px;
  }
  
  .pageHeader {
    padding: 16px;
  }
  
  .contentTabs .ant-tabs-nav {
    padding: 0 16px;
  }
  
  .contentTabs .ant-tabs-content-holder {
    padding: 16px;
  }
  
  .settingItem {
    padding: 12px 0;
  }
  
  .statNumber {
    font-size: 20px;
  }
  
  .statItem {
    padding: 8px 4px;
  }
  
  .themeSelector {
    justify-content: center;
  }
  
  .themeOption {
    min-width: 70px;
    padding: 12px;
  }
  
  .themeOption .themeIcon {
    font-size: 20px;
  }
  
  .infoItem {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .infoItem .ant-typography:last-child {
    text-align: left;
  }
}

@media (max-width: 576px) {
  .settingsPage {
    padding: 12px;
  }
  
  .pageHeader {
    padding: 12px;
  }
  
  .titleSection h2 {
    font-size: 18px;
  }
  
  .contentTabs .ant-tabs-nav {
    padding: 0 12px;
  }
  
  .contentTabs .ant-tabs-content-holder {
    padding: 12px;
  }
  
  .settingItem {
    padding: 8px 0;
  }
  
  .statNumber {
    font-size: 18px;
  }
  
  .statLabel {
    font-size: 11px;
  }
  
  .themeOption {
    min-width: 60px;
    padding: 8px;
  }
  
  .themeOption .themeIcon {
    font-size: 18px;
    margin-bottom: 4px;
  }
  
  .themeOption .themeLabel {
    font-size: 11px;
  }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
  .settingsPage {
    background-color: #141414;
  }
  
  .pageHeader,
  .pageContent,
  .settingCard {
    background-color: #1f1f1f;
    border-color: #303030;
  }
  
  .pageTitle {
    color: #177ddc;
  }
  
  .settingCard .ant-card-head {
    background-color: #1f1f1f;
    border-bottom-color: #303030;
  }
  
  .settingCard .ant-card-head-title {
    color: #ffffff;
  }
  
  .settingItem {
    border-bottom-color: #303030;
  }
  
  .statItem {
    background-color: #262626;
  }
  
  .statItem:hover {
    background-color: #303030;
  }
  
  .statNumber {
    color: #177ddc;
  }
  
  .uploadArea {
    background-color: #262626 !important;
    border-color: #434343 !important;
  }
  
  .uploadArea:hover {
    border-color: #177ddc !important;
    background-color: #111b26 !important;
  }
  
  .dangerCard {
    background-color: #1f1f1f;
    border-color: #dc4446;
  }
  
  .dangerCard .ant-card-head {
    background-color: #2a1215;
    border-bottom-color: #5c2526;
  }
  
  .dangerCard .ant-card-head-title {
    color: #dc4446;
  }
  
  .infoItem {
    border-bottom-color: #303030;
  }
  
  .infoItem .ant-typography:first-child {
    color: #ccc;
  }
  
  .infoItem .ant-typography:last-child {
    color: #ffffff;
  }
  
  .themeOption {
    background-color: #262626;
    border-color: #434343;
  }
  
  .themeOption:hover {
    border-color: #177ddc;
    background-color: #111b26;
  }
  
  .themeOption.active {
    border-color: #177ddc;
    background-color: #111b26;
  }
  
  .themeOption .themeLabel {
    color: #ccc;
  }
}

/* 动画效果 */
.settingCard,
.statItem,
.themeOption {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.uploadArea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 加载状态 */
.settingsPage .ant-spin-container {
  min-height: 200px;
}

/* 表单样式 */
.settingsPage .ant-form-item {
  margin-bottom: 16px;
}

.settingsPage .ant-form-item-label {
  font-weight: 500;
}

/* 按钮样式 */
.settingsPage .ant-btn {
  border-radius: 6px;
  transition: all 0.3s ease;
}

.settingsPage .ant-btn:hover {
  transform: translateY(-1px);
}

/* 选择器样式 */
.settingsPage .ant-select {
  border-radius: 6px;
}

.settingsPage .ant-input-number {
  border-radius: 6px;
}

/* 开关样式 */
.settingsPage .ant-switch {
  border-radius: 12px;
}

/* 滑块样式 */
.settingsPage .ant-slider {
  margin: 8px 0;
}

/* 警告框样式 */
.settingsPage .ant-alert {
  border-radius: 6px;
}

/* 进度条样式 */
.settingsPage .ant-progress {
  margin: 8px 0;
}

/* 上传区域样式 */
.uploadArea .ant-upload-drag-container {
  padding: 20px !important;
}

.uploadArea .ant-upload-text {
  color: #666 !important;
  font-size: 14px !important;
}

.uploadArea .ant-upload-hint {
  color: #999 !important;
  font-size: 12px !important;
}

@media (prefers-color-scheme: dark) {
  .uploadArea .ant-upload-text {
    color: #ccc !important;
  }
  
  .uploadArea .ant-upload-hint {
    color: #999 !important;
  }
}